file='guest.txt.py'
with open(file,'w') as file_object:
    message=input('请输入你的名字')
    file_object.write(message)